package com.harbintransport.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "station_passenger_ranking")
public class StationPassengerRanking {

    @Id
    @Column(name = "station_name")
    private String stationName;

    private int onboard;
    private int offboard;

    public StationPassengerRanking() {
    }

    public StationPassengerRanking(String stationName, int onboard, int offboard) {
        this.stationName = stationName;
        this.onboard = onboard;
        this.offboard = offboard;
    }

    // Getters and Setters
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public int getOnboard() {
        return onboard;
    }

    public void setOnboard(int onboard) {
        this.onboard = onboard;
    }

    public int getOffboard() {
        return offboard;
    }

    public void setOffboard(int offboard) {
        this.offboard = offboard;
    }

    @Override
    public String toString() {
        return "StationPassengerRanking{" +
                "stationName='" + stationName + '\'' +
                ", onboard=" + onboard +
                ", offboard=" + offboard +
                '}';
    }
}